//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.spring.schedule_system.dengxiaojiao.util;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

public class PageInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(
        value = "当前页数",
        required = false,
        example = ""
    )
    private int pageIndex;
    @ApiModelProperty(
        value = "每页大小",
        required = false,
        example = ""
    )
    private int pageSize;

    public PageInfo() {
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        if (pageIndex < 0) {
            this.pageIndex = 1;
        } else {
            this.pageIndex = pageIndex;
        }

    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        if (pageSize >= 0 && pageSize <= 10000) {
            this.pageSize = pageSize;
        } else {
            this.pageSize = 10000;
        }

    }
}
